#include "StdAfx.h"
#include "UIScene.h"

UIScene::UIScene(void)
{
}

UIScene::~UIScene(void)
{
}

void UIScene::CtrlRun()
{
	std::vector<UIControl*>::iterator iter_pos;
	for(iter_pos = m_UICtrlVec.begin(); iter_pos != m_UICtrlVec.end(); ++iter_pos)
	{
		(*iter_pos)->Run();
	}
}
void UIScene::Run()
{
	Frame();
	Render();
	CtrlRun();
}

void UIScene::Frame()
{

}

void UIScene::Render()
{

}


void UIScene::Release()
{

}

void UIScene::InsertUIControl( UIControl* pUICtrl )
{
	m_UICtrlVec.push_back(pUICtrl);
}


